﻿using IQIGame.Onigao.Framework;
using IQIGame.Onigao.Game;
using UnityEngine;


namespace IQIGame.Onigao.GamePlay
{
    public class UITestWindowExtend : IQIGame.Onigao.GamePlay.UITestWindow
    {
        /// <summary>
        /// 静态配置
        /// </summary>
        private static UICreateConfig _createConfig = new()
        {
            prefabName = nameof(UITestWindowExtend),
            parentPath = "NoPack",
            layer = EUILayer.Normal,
        };

        /// <summary>
        /// 创建UI的配置
        /// </summary>
        public override IUICreateConfig createConfig => _createConfig;

        #region Template Generate,don't modify
        protected partial class UIB_UILogin2 : IQIGame.Onigao.GamePlay.UITestWindow.UIB_UITestWindow
        {
            #region ObjectBinding Generate 
            public IQIGame.Onigao.Framework.ExText textLegacy { protected set; get; }
            protected override void InitBinding(ObjectBinding __binding)
            {
                base.InitBinding(__binding);
                var __tbv3 = __binding.Variables[3];
                this.textLegacy = __tbv3.GetValue<IQIGame.Onigao.Framework.ExText>();
            }

            #endregion ObjectBinding Generate 
        }
        #endregion Template Generate,don't modify

        /// <summary>
        /// 可以自定义修改的
        /// </summary>
        protected partial class UIB_UILogin2
        {
            public override void StartBinding(GameObject __go)
            {
                base.StartBinding(__go);
            }
        }
        protected new UIB_UILogin2 ui { get; set; }

        protected override void BeforeInit()
        {
            ui = new UIB_UILogin2();
            ui.StartBinding(gameObject);
        }

        protected override void OnInit()
        {

        }

        protected override void OnDispose()
        {
            base.OnDispose();
        }
    }
}
